<?php
function foo()
{
  echo "in foo";
}

function &bar()
{
    $a = 5;
    return $a;
}
foo(bar());
echo $a;
?>

